package com.ruoyi.printer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.printer.domain.PrinterShop;
import com.ruoyi.printer.domain.vo.PrinterShopVo;
import com.ruoyi.printer.mapper.PrinterShopMapper;
import com.ruoyi.printer.service.IPrinterShopService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 店铺管理Service业务层处理
 * 
 * @author yanyi
 * @date 2023-07-07
 */
@Service
public class PrinterShopServiceImpl extends ServiceImpl<PrinterShopMapper,PrinterShop> implements IPrinterShopService
{
    /**
     * 查询店铺管理
     * 
     * @param shopId 店铺管理主键
     * @return 店铺管理
     */
    @Override
    public PrinterShopVo selectPrinterShopByShopId(Long shopId)
    {
        return baseMapper.selectPrinterShopByShopId(shopId);
    }

    /**
     * 查询店铺管理列表
     * 
     * @param printerShop 店铺管理
     * @return 店铺管理
     */
    @Override
    public List<PrinterShopVo> selectPrinterShopList(PrinterShop printerShop)
    {
        return baseMapper.selectPrinterShopList(printerShop);
    }

    /**
     * 新增店铺管理
     * 
     * @param printerShop 店铺管理
     * @return 结果
     */
    @Override
    public int insertPrinterShop(PrinterShop printerShop)
    {
        return baseMapper.insert(printerShop);
    }

    /**
     * 修改店铺管理
     * 
     * @param printerShop 店铺管理
     * @return 结果
     */
    @Override
    public int updatePrinterShop(PrinterShop printerShop)
    {
        return baseMapper.updateById(printerShop);
    }

    /**
     * 批量删除店铺管理
     * 
     * @param shopIds 需要删除的店铺管理主键
     * @return 结果
     */
    @Override
    public int deletePrinterShopByShopIds(Long[] shopIds)
    {
        return baseMapper.deletePrinterShopByShopIds(shopIds);
    }

    /**
     * 删除店铺管理信息
     * 
     * @param shopId 店铺管理主键
     * @return 结果
     */
    @Override
    public int deletePrinterShopByShopId(Long shopId)
    {
        return baseMapper.deletePrinterShopByShopId(shopId);
    }
}
